<template>
    <view class="login_warp" v-if="show_on_off">
        <view class="login_content">
            <view class="tatle">{{ tatle }}</view>
            <view class="content">
                <rich-text :nodes="content"></rich-text>
            </view>
            <view class="button" @click="login_off">确认</view>
        </view>
    </view>
</template>

<script>
export default {
    props: {
        tatle: String,
        content: String
    },
    data() {
        return {
            show_on_off: false
        }
    },
    methods: {
        login_off() {
            this.show_on_off = false
        },
        login_on() {
            this.show_on_off = true
        }

    }

}
</script>
<style lang="less">
.login_warp {
    background: rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999;

    .login_content {
        width: 70%;
        background: #FFFFFF;
        border-radius: 12rpx;
        padding: 24rpx;
        margin: 0 auto;

        .tatle {
            color: #222222;
            text-align: center;
            font-size: 30rpx;
            font-weight: 500;
            text-align: center;
        }

        .content {
            color: #222222;
            // text-align: center;
            font-size: 24rpx;
            font-weight: 400;
            margin: 20rpx 0;
        }

        .button {
            text-align: center;
            padding: 10rpx 0;
            background: #92D9F6;
            color: #FFFFFF;
            border-radius: 12rpx;
            width: 50%;
            margin: auto;
        }

    }
}
</style>